import java.util.Arrays;
import java.util.stream.Stream;

public class ArraysSteam {
    public static void main(String[] args) {

        int [] arr={1,2,3,4,5,6};
        String [] arrOne={"a","b","c","d"};
        Arrays.stream(arr).forEach(s-> System.out.println(s));
        Arrays.stream(arrOne).forEach(s -> System.out.println(s));
        //steam of 只能对引用数据类型数值装箱  ，基本数据类型会把数组当作一个元素放入steam流
       Stream.of(arr).forEach(s-> System.out.println(s));
        Stream.of(arrOne).forEach(s-> System.out.println(s));


    }
}
